<div id="sidebar">
	<div id="sidebar-top">
		<div class="widget">
			<h3 class="widget-title w1">
				<span class="ico"></span>
			</h3>
			<div class="nclock">
				<span>0</span>
				<span>0</span>:
				<span>0</span>
				<span>0</span>:
				<span>0</span>
				<span>0</span>
			</div>
		</div>
		<!--获取标签-->
		<?php 
		$tagModel = new \Common\Model\Tag;
		$tagData = $tagModel->get();
		 ?>
		<div class="widget">
			<h3 class="widget-title w2">
				<span class="ico"></span>
			</h3>
			<div class="tag">
			{{foreach from="$tagData" value="$v"}}
				<a href="t_{{$v['tid']}}.html">{{$v['tname']}}</a>
			{{endforeach}}				
			</div>
		</div>
		<!--获取文章-->
		<?php 
		$arcModel = new \Common\Model\Arc;
		$arcData = $arcModel->orderBy('sendtime','desc')->limit(5)->get();
		 ?>
		<div class="widget">
			<h3 class="widget-title w3">
				<span class="ico"></span>
			</h3>
			<div class="arc">
				{{foreach from="$arcData" value="$v"}}
				<p><a href="a_{{$v['aid']}}.html">{{$v['title']}}</a></p>
				{{endforeach}}
			</div>
		</div>
		<!--获取友链-->
		<?php 
		$linkModel = new \Common\Model\Links;
		$data = $linkModel->get();
		 ?>
		<div class="widget">
			<h3 class="widget-title w4">
				<span class="ico"></span>
			</h3>
			<div class="links">
			{{foreach from="$data" value="$v"}}
				<p><a href="http://{{$v['url']}}">{{$v['lname']}}</a></p>
			{{endforeach}}
			</div>
		</div>
	</div>
	<div id="sidebar-bottom"></div>
</div>